class_name HurtboxComponent
extends Area2D



signal damage_hitbox(hitbox: HitboxComponent)


func _ready():
	area_entered.connect(on_hurt_area)



func on_hurt_area(area: Area2D):

	prints("====== on_hurt_area", name)

	if area is HitboxComponent:
		damage_hitbox.emit(area)